﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class RemoveUserInfoTestPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Submit_Click(object sender, EventArgs e)
    {
        String inputText = this.urlTextBox.Text;
        string[] newsTopics;
        if (inputText == null || inputText.Equals(""))
        {
            this.output.InnerText = "No Output Input is Empty";
            newsTopics = new String[0];
        }
        else
        {
            ZachmanServiceReference.Assignment3ServiceClient client = new ZachmanServiceReference.Assignment3ServiceClient();

            Boolean complete = client.RemoveUserInfoFromRecords(inputText);
            if (complete)
            {
                this.output.InnerText = "User info removed from records";
            }
            else
            {
                this.output.InnerText = "User record not found";
            }
        }
    }
}